<?php if($page['sidebar_first']): ?>
    <div id="sidebar-left" class="sidebar">
        <?php print render($page['sidebar_first']); ?>
    </div>
<?php endif; ?>

<div id="center">
    <?php if($tabs): ?>
        <div class="tabs"><?php print render($tabs); ?></div>
    <?php endif; ?>
    <?php //if($messages) print $messages; ?>
    <?php print render($page['help']); ?>

    <div class="clear-block main-content">

        <?php print render($page['content']); ?>
        <div id="pic-copyright">
            Attribution &copy; by Magnus Larsson<br />
            (https://www.flickr.com/people/magnusl3d/)
        </div>
    </div>

    <?php echo $feed_icons ?>
</div>

<?php if($page['sidebar_second']): ?>
    <div id="sidebar-right" class="sidebar">
        <?php print render($page['sidebar_second']); ?>
    </div>
<?php endif; ?>